import {defineStore} from 'pinia'
import {ITheatresState} from '../types'
import api from '../api'
const useTheatresStore=defineStore('theatres',{
    state:():ITheatresState=>{
        return{
            rows:[]
        }
    },
    actions:{
        async getThreatresList(){
           const result=await api.theatres.getAllTheatres()
           this.rows=result.data.places
        }
    }
})
export default useTheatresStore